<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<div id="courseGrid"></div>
	<div id="courseToolbar">
	<div>
		<a href="#" class="easyui-linkbutton" onclick="course.toolbar.showAddDialog();" data-options="
		iconCls:'icon-add',
		plain:true">
			新增
		</a>
		<a href="#" class="easyui-linkbutton" onclick="course.toolbar.showUpdateDialog();" data-options="
		iconCls:'icon-edit',
		plain:true">
			修改
		</a>
		<a href="#" class="easyui-linkbutton" onclick="course.toolbar.remove();" data-options="
		iconCls:'icon-remove',
		plain:true">
			删除
		</a>
		<a href="#" class="easyui-linkbutton" onclick="course.toolbar.redo();" data-options="
		iconCls:'icon-redo',
		plain:true">
			取消
		</a>
	</div>

</div>

<div id="courseAddDialog" style="width:350px" class="easyui-dialog course-add" data-options="
title:'新增课程',
buttons:'#courseAddButtons',
closed: true,
onClose:course.toolbar.resetAddForm">
	<form id="courseAddForm" method="post" style="text-align: center">
	<input type="hidden" name="id"/>
		<p>
			<strong>父级菜单：</strong>
			<input type="text" name="ptext" class="easyui-textbox" data-options="
			required:true" readonly="readonly">
		</p>
		<p>
			<strong>课程名称：</strong>
			<input type="text" name="courseName" id="courseName" class="easyui-textbox" data-options="
			required:true,
			validType:['remote[\'<%=request.getContextPath() %>/CourseServlet?command=checkCourseName\', \'courseName\']'],
			invalidMessage: '该班级名称非法或已存在'">
		</p>
	</form>
</div>
<div id="courseAddButtons">
	<a href="#" onclick="course.toolbar.add()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-add',
	plain: true">
		新增
	</a>
	<a href="#" onclick="course.toolbar.hiddenAddDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>
<div id="courseUpdateDialog" style="width:350px" class="easyui-dialog course-add" data-options="
title: '修改课程',
buttons: '#courseUpdateButtons',
closed: true,
onClose: course.toolbar.resetUpdateFrom">
	<form id="courseUpdateForm" method="post" style="text-align: center">
		<input type="hidden" name="id"/>
		<p>
			<strong>父级菜单：</strong>
			<input type="text" name="ptext" class="easyui-textbox" data-options="
			required:true" readonly="readonly">
		</p>
		<p>
			<strong>课程名称：</strong>
			<input type="text" name="courseName" id="coursename" class="easyui-textbox" data-options="
			required: true,
			validType:['remote[\'<%=request.getContextPath() %>/CourseServlet?command=checkCourseName\', \'courseName\']'],
			invalidMessage: '该班级名称非法或已存在'">
		</p>
	</form>
</div>
<div id="courseUpdateButtons">
	<a href="#" onclick="course.toolbar.update()" class="easyui-linkbutton" data-options="
	iconCls: 'icon-edit',
	plain: true">
		修改
	</a>
	<a href="#" onclick="course.toolbar.hiddenUpdateDialog();" class="easyui-linkbutton" data-options="
	iconCls: 'icon-redo',
	plain: true">
		取消
	</a>
</div>

<script>
window.ctx = "<%=request.getContextPath() %>"
</script>
<script src="<%=request.getContextPath() %>/static/system/js/course.js"></script>
<script src="<%=request.getContextPath() %>/static/common/js/common.js"></script>
